/**
 * JAVACC DEMO 1.0
 * @copy right iussoft company All rights reserved.
 * @Package com.iussoft.order.client
 */
package com.apache.portal.common.enums;

import com.apache.tools.StrUtil;

/**
 * description:  客户端方法标识枚举类
 * @author Hou Dayu 创建时间：2016-8-12
 */
public enum WcmMethodEnum {

	channles("cllist"), channel("clview"), manuscripts("mtlist"), manuscript("mtview"), clOneMt("oneinfo"), saveChannel(
			"saveChannel"), saveManuscript("saveArtice"), delChannel("dealChannel"), delManuscript("delArtice"), publishArtice(
			"publishArtice"), preViewAritce("preArtice"), unpublishArtice("unpublishArtice"),pushArticeToChannel("pushArticeToChannel"), Deault("U000");

	private String name;

	private WcmMethodEnum(String name) {
		this.name = name;
	}

	// 普通方法  
	public static WcmMethodEnum getName(String name) {
		if (StrUtil.isNull(name))
			return Deault;
		for (WcmMethodEnum c : WcmMethodEnum.values()) {
			if (c.getName().equals(name)) {
				return c;
			}
		}
		return Deault;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
